package com.whli.autumn.mall.wms.service;

import com.whli.autumn.core.extend.service.IBaseService;
import com.whli.autumn.mall.wms.domain.dto.warehouseinfo.WarehouseInfoQueryDTO;
import com.whli.autumn.mall.wms.domain.entity.WarehouseInfo;
import com.whli.autumn.mall.wms.domain.vo.warehouseinfo.WarehouseInfoVO;

import java.util.List;

/**
 * <p>仓库信息业务</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-04-09 08:37
 */
public interface IWarehouseInfoService extends IBaseService<WarehouseInfo> {

    /**
     * <p>启用仓库信息</p>
     *
     * @author whli
     * @since 2023/4/30 21:03
     * @param id 主键
     * @return
     */
    boolean enable(String id);

    /**
     * <p>禁用仓库信息</p>
     *
     * @author whli
     * @since 2023/4/30 21:03
     * @param id 主键
     * @return
     */
    boolean disable(String id);

    /**
     * <p>查询所有启用仓库信息</p>
     *
     * @author whli
     * @since 2023/4/30 21:09
     * @param entity
     * @return
     */
    List<WarehouseInfoVO> listWarehouseInfo(WarehouseInfoQueryDTO entity);

}
